using System.IO;
using UnityEditor;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    public class GenAnimatorBattleCharacter : GenAnimatorLevelCharacter
    {
        public override ArtModeGenType genAnimatorType => ArtModeGenType.BattleCharacter;
        protected override string entityGenConfigPath => $"Assets/EditorConfig/ArtToolConfig/EntityGen/Character/{entityName}.asset";
        protected override string defaultGenConfigPath => "Assets/EditorConfig/ArtToolConfig/EntityGen/Common/Entity_LevelCharacter.asset";

        /// <summary>
        /// 获取动画资源路径
        /// </summary>
        /// <returns></returns>
        public override string GetAnimatorResPath()
        {
            var animatorResPath = Path.Combine(basePath, $"battle_{entityName}_animator.controller");
            return animatorResPath;
        }
    }
}
